import request from '@/utils/request'

// 添加专项任务计划
export const addSpecial = (data) => {
  return request({
    method: 'post',
    url: '/inspection/special/add',
    data,
  })
}

// 查询专项任务计划列表
export const getSpecialList = (params) => {
  return request({
    method: 'get',
    url: '/inspection/special/query',
    params,
  })
}

// 获取专项任务计划详情
export const getSpecialDetail = (params) => {
  return request({
    method: 'get',
    url: '/inspection/special/get',
    params,
  })
}

// 修改专项任务计划
export const updateSpecial = (data) => {
  return request({
    method: 'put',
    url: `/inspection/special/update/${data.pkid}`,
    data,
  })
}

// 删除专项任务计划
export const deleteSpecial = (params) => {
  return request({
    method: 'delete',
    url: `/inspection/special/delete`,
    params,
  })
}
